package org.tea.inventory.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.tea.inventory.base.validation.groups.CreateGroup;
import org.tea.inventory.base.validation.groups.UpdateGroup;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 积分规则表
 */
@ApiModel(value = "积分规则表")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MallIntegralRuleDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "积分id")
    @NotNull(message = "积分id不能为空", groups = {UpdateGroup.class})
    private Long id;
    /**
     * 积分
     */
    @ApiModelProperty(value = "积分")
    @NotNull(message = "积分不能为空", groups = {CreateGroup.class})
    private Integer integral;
    /**
     * 积分类型
     */
    @ApiModelProperty(value = "积分规则类型")
    private Integer integralType;
    /**
     * 积分名称
     */
    @ApiModelProperty(value = "积分名称")
    private String integralName;
    /**
     * 状态 -1:删除, 0: 开启, 1:关闭
     */
    @ApiModelProperty(value = "状态 -1:删除, 0: 关闭, 1:开启")
    private Integer status;


}